package main

import (
	"encoding/binary"
	"log"
	"net"
)

func main() {
	conn, err := net.Dial("tcp", ":8080")
	if err != nil {
		log.Fatal(err)
	}

	for {
		bytes := make([]byte, 8)
		_, err := conn.Read(bytes)
		if err != nil {
			log.Println(err)
		}

		u := binary.BigEndian.Uint64(bytes)
		log.Println(u)
	}
}
